import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'Layout',
      redirect: '/config',
      component: () => import('@/layout/components/LayMain.vue'),
      children: [
        {
          path: 'config',
          name: 'Config',
          component: () => import('@/views/config/RedisConfig.vue')
        },
        {
          path: 'link',
          name: 'Link',
          component: () => import('@/views/link/RedisLink.vue')
        }
      ]
    }
  ]
})

export default router
